<?php

namespace App\Models\Train\TrainQuery;

use Eloquent;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Carbon;

/**
 * App\Models\Train\TrainQuery\TrainQueryResult
 *
 * @property int         $id
 * @property int         $from_type         出发查询类型 0 城市 1 地区 2 站点
 * @property int         $to_type           到达查询类型  0 城市 1 地区 2 站点
 * @property string      $from_code         出发code
 * @property string      $to_code           到达code
 * @property string      $from_station_code 结果集的出发站
 * @property string      $to_station_code   结果集的目的站
 * @property string      $train_code        结果集的车次
 * @property Carbon|null $created_at
 * @property Carbon|null $updated_at
 * @method static Builder|TrainQueryResult newModelQuery()
 * @method static Builder|TrainQueryResult newQuery()
 * @method static Builder|TrainQueryResult query()
 * @method static Builder|TrainQueryResult whereCreatedAt($value)
 * @method static Builder|TrainQueryResult whereFromCode($value)
 * @method static Builder|TrainQueryResult whereFromStationCode($value)
 * @method static Builder|TrainQueryResult whereFromType($value)
 * @method static Builder|TrainQueryResult whereId($value)
 * @method static Builder|TrainQueryResult whereToCode($value)
 * @method static Builder|TrainQueryResult whereToStationCode($value)
 * @method static Builder|TrainQueryResult whereToType($value)
 * @method static Builder|TrainQueryResult whereTrainCode($value)
 * @method static Builder|TrainQueryResult whereUpdatedAt($value)
 * @mixin Eloquent
 */
class TrainQueryResult extends Model
{
    use HasFactory;

    protected $table = "train_query_result";
    protected $fillable
                     = [
            "from_type",
            "to_type",
            "from_code",
            "to_code",
            "from_station_code",
            "to_station_code",
            "train_code",
        ];
}
